package com.h3c.nem.entity;

import java.util.Date;
import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: TbNewerTask
 *
 * @Author: l22886
 * @Date: 2022-01-24
 * Description: tb_newer_task 实体
 * Version: 1.0
 */
@ApiModel(value="TbNewerTask对象", description="")
@Table(name = "tb_newer_task")
@Data
public class TbNewerTask {


    @ApiModelProperty(value = "小任务ID")
    @Column(name = "task_id")
    @TableId
    private String taskId;

    @ApiModelProperty(value = "小任务名称")
    @Column(name = "task_name")
    private String taskName;

    @ApiModelProperty(value = "任务说明")
    @Column(name = "task_note")
    private String taskNote;

    @ApiModelProperty(value = "适用对象类型：1 所有新员工；2 按体系使用；3 按部门使用；")
    @Column(name = "target_type")
    private Integer targetType;

    @ApiModelProperty(value = "适用对象的值")
    @Column(name = "target_config_value")
    private String targetConfigValue;

    @ApiModelProperty(value = "任务入口")
    @Column(name = "task_entry")
    private String taskEntry;

    @ApiModelProperty(value = "任务生效日期")
    @Column(name = "task_valid_date")
    private Date taskValidDate;

    @ApiModelProperty(value = "任务失效日期")
    @Column(name = "task_expire_date")
    private Date taskExpireDate;

    @ApiModelProperty(value = "任务完成时限要求json格式字符串（需支持：无限制；N天内；转正前N天）")
    @Column(name = "task_finish_limit")
    private String taskFinishLimit;

    @ApiModelProperty(value = "适应员工范围：1 当前新员工；2 未来新员工；3 当前和未来的新员工；")
    @Column(name = "task_target_worker")
    private Integer taskTargetWorker;

    @ApiModelProperty(value = "审批人类型： 1 直接主管；2 部门接口人；3 HRBP；4:思想导师；5：其他")
    @Column(name = "approver_type")
    private Integer approverType;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建人工号/姓名")
    @Column(name = "creator_info")
    private String creatorInfo;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "更新人工号/姓名")
    @Column(name = "updator_info")
    private String updatorInfo;

    @ApiModelProperty(value = "启用标志：1 未启用；2 已启用；")
    @Column(name = "enable_flag")
    private Integer enableFlag;

    @ApiModelProperty(value = "是否影响转正：1 不影响；2 影响；")
    @Column(name = "effect_normal_flag")
    private Integer effectNormalFlag;

    @ApiModelProperty(value = "其他审批人")
    @Column(name = "approver_Id")
    private String approverId;

}
